Class browser.Document
All Packages This Package Previous Next
Class browser.Document
java.lang.Object
|
+----net.www.html.Document
|
+----browser.Document
-
public class
Document
-
extends Document
Class Document extends the generic html.Document class to use
TagRef subclasses that contain information about formatting the
document. This is the class which associates particular style
changes with particular html tags. Many of the html tags are
associated with a single TagRef subclass called StyleTagRef,
which knows how to apply a style to the formatter when the
formatter encounters that tag. But many other tags have their
own special subclass of TagRef, and it's this class which
associates those TagRef subclasses with the html tag. This
also handles creation, starting, stopping and destruction of
hotjava applets.
-
See Also:
-
Applet,
Style,
Document
-
Version:
-
1.50, 10 May 1995
-
Author:
-
Jonathan Payne
-
displayItem
-
If an html document is transformed into a DisplayItem
(rather than being a normal text document) then this points
to that DisplayItem and the other parts of the document are
ignored
-
Document(URL, InputStream)
-
Creates a new Document with the specified URL and InputStream.
-
Document(URL, String)
-
Creates a new Document with the specified URL with its
contents initialized by the specified String.
-
addApplet(AppletDisplayItem)
-
Add an applet to this document
-
destroyApplets()
-
Send destroy()s to all the Applets in our hashtable.
-
endTag(Tag, int)
-
Creates and returns a new TagRef for the specified html end tag.
-
flushImages()
-
Nuke all the images in a document
-
setURL(URL)
-
Sets the URL that is associated with this document.
-
startApplets()
-
Send start()s to all the Applets in our hashtable.
-
startTag(Tag, int)
-
Creates and returns a new TagRef for the specified html start tag.
-
stopApplets()
-
Send stop()s to all the Applets in our hashtable.
-
toString()
-
-
url()
-
Returns the URL that is associated with this document.
displayItem
public DisplayItem displayItem
-
If an html document is transformed into a DisplayItem
(rather than being a normal text document) then this points
to that DisplayItem and the other parts of the document are
ignored
Document
public Document(URL url,
InputStream is)
-
Creates a new Document with the specified URL and InputStream.
Document
public Document(URL u,
String s)
-
Creates a new Document with the specified URL with its
contents initialized by the specified String. Unless the
string starts with "", the document
is a plain text document, which means it contains no html
tags in it, exception for the <plaintext> tag at the very
beginning.
toString
public String toString()
startTag
public TagRef startTag(Tag t,
int offset)
-
Creates and returns a new TagRef for the specified html start tag.
-
Overrides:
-
startTag in class Document
endTag
public TagRef endTag(Tag t,
int offset)
-
Creates and returns a new TagRef for the specified html end tag.
-
Overrides:
-
endTag in class Document
url
public URL url()
-
Returns the URL that is associated with this document.
setURL
public void setURL(URL u)
-
Sets the URL that is associated with this document.
addApplet
public synchronized void addApplet(AppletDisplayItem item)
-
Add an applet to this document
startApplets
public synchronized void startApplets()
-
Send start()s to all the Applets in our hashtable.
stopApplets
public synchronized void stopApplets()
-
Send stop()s to all the Applets in our hashtable.
destroyApplets
public synchronized void destroyApplets()
-
Send destroy()s to all the Applets in our hashtable.
flushImages
public synchronized void flushImages()
-
Nuke all the images in a document
All Packages This Package Previous Next